<?php

use Illuminate\Database\Schema\Blueprint;
use Eloquent\Migrations\Migrations\Migration;
return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
       $this->schema()->create('shop_data', function (Blueprint $table) {
            $table->id();
            $table->string('shop_name', 255)->comment('店舗名');
            $table->string('minprice', 255)->comment('最低价格');
            $table->string('maxprice', 255)->comment('最高价格');
            $table->string('title', 255)->comment('标题');
            $table->integer('salesCount')->comment('销量');
            $table->integer('comment')->comment('累计评价');
            $table->date('day')->comment('采集日期');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        $this->schema()->dropIfExists('shop_data');
    }
};
